/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.amuthu;

/**
 *
 * @author prabhu
 */
public class QuoteDataStore implements DataStore
{
   private static QuoteDataStore instance = null;
   private int size = 0;
   private double[] high = null;
   private double[] low = null;
   private double[] open = null;
   private double[] close = null;
   private double[] volume = null;

   public static QuoteDataStore getInstance()
   {
      if (instance == null) {
         instance = new QuoteDataStore();
      }

      return instance;
   }

   public void clean()
   {
      size = 0;
      high = null;
      low = null;
      open = null;
      close = null;
      volume = null;
   }

   public int getSize()
   {
      return size;
   }

   public void setSize(int size)
   {
      this.size = size;
   }

   public void setHigh(double[] high)
   {
      this.high = high;
   }

   public void setLow(double[] low)
   {
      this.low = low;
   }

   public void setOpen(double[] open)
   {
      this.open = open;
   }

   public void setClose(double[] close)
   {
      this.close = close;
   }

   public void setVolume(double[] volume)
   {
      this.volume = volume;
   }

   public double[] getHigh()
   {
      return high;
   }

   public double[] getLow()
   {
      return low;
   }

   public double[] getOpen()
   {
      return open;
   }

   public double[] getClose()
   {
      return close;
   }

   public double[] getVolume()
   {
      return volume;
   }

}
